<div class="<?php ns(); ?>">
	<div>
		<?php

		if (app()->getProfilingManager()->isProfilingStarted() === true)
		{

		?>
		<a class="btn btn-success btn-small" href="<?php p(url('[Loop]/action/ProfilingManager.start')); ?>"><span class="icon icon-white icon-refresh"></span></a>
		<a class="btn btn-danger btn-small" href="<?php p(url('[Loop]/action/ProfilingManager.stop')); ?>"><span class="icon icon-white icon-stop"></span></a>
		<?php

		}
		else
		{

		?>
		<a class="btn btn-success btn-small" href="<?php p(url('[Loop]/action/ProfilingManager.start')); ?>"><span class="icon icon-white icon-play"></span></a>
		<?php

		}

		?>
		<?php

		$summaries = v('summaries');

		foreach ($summaries as $summaryKey => $summary)
		{
			
		?>
		<a class="btn btn-inverse btn-small" target="_blank" href="<?php p(url('[Loop]/page/admin/profiling/')); ?>" rel="tooltip" data-original-title="<?php p($summary['value'], FORMAT_NUMBER); ?> / <?php p($summary['maxValue'], FORMAT_NUMBER); ?> (<?php p($summary['percentage']); ?>%)">
			<div class="pull-left" style="margin-right: 10px;">
				<span class="icon icon-white <?php p($summary['classOfIcon']); ?>"></span>
			</div>
			<div class="progress pull-right" style="margin-bottom: 0px; width: 100px; background-image: none; background-color: silver;">
				<div class="bar bar-<?php p($summary['classOfFlag']); ?>" style="width: <?php p($summary['percentage']); ?>%;"></div>
			</div>
		</a>
		<?php

		}

		?>
	</div>
</div>
